<include file="Public:js" /> 
<div class="main-wrap">
        <script type="text/javascript">
          function jiben()
          {
            $("#jibeninfo").css('display','block'); 
            $("#buchonginfo").css('display','none'); 
          }
          function buchong()
          {
            $("#jibeninfo").css('display','none'); 
            $("#buchonginfo").css('display','block'); 
          }
        </script>
        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">基本信息</span></div>
        </div>
        
        <div class="result-wrap">
            <form action="{:U('Qrcode/addGoodsinfoSub')}" method="post" id="myform" name="myform">
            <!-- 店铺ID -->
                <input type="hidden" name="supplier_id" value="{$data.supplier_id}">
                <input type="hidden" name="goods_id" value="{$data.goods_id}">
                <div class="config-items" id='jibeninfo' style="display: block;">
                    <div class="config-title" >
                        <h1>
                          <i class="icon-font">&#xe00a;</i>
                          <span onclick="jiben()" onmouseover="this.style.cursor='hand'">基本信息</span> &nbsp;&nbsp;&nbsp;
                          <i class="icon-font">&#xe00a;</i>
                          <span onclick='buchong()' onmouseover="this.style.cursor='hand'" class='buchong'>补充信息</span>
                        </h1>
                    </div>
                    <div class="result-content">
                        <table width="100%" class="insert-tab">
                            <tbody>
                            <tr>
                                <th width="15%"><i class="require-red"></i></th>  
                                <td>    打勾表示开启功能</td>
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>生产厂商</th>           
                               <td>
                                    <input type="text" value="{$info.manufacturer}"  style='width: 50%'  name="manufacturer" class="common-text"> 
                                    <if condition="$info.is_manufacturer eq 1 ">
                                    <input type="checkbox" checked="true" value='1'  name="is_manufacturer" id="">
                                    <else /> 
                                    <input type="checkbox"    name="is_manufacturer" id="">
                                    </if>
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%"><i class="require-red"></i>注册地址</th>
                               <td>
                                    <input type="text" value="{$info.regaddress}" style='width: 50%' name="regaddress" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                <th width="15%"><i class="require-red"></i>企业类别</th>                            
                                <td>  
							        <select name="entcategory" style='width: 50%' >  
							             
                                            <option value="1" <if condition="$info.entcategory eq 1 ">selected='selected' </if> size="85"  class="common-text">有限责任公司</option>  
							                <option value="2"  <if condition="$info.entcategory eq 2 ">selected='selected' </if>  size="85"  class="common-text">股份公司</option>  
							             
							        </select>  
							    </td> 

                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>组织机构代码</th>
                                
                               <td>
                                    <input type="text"  value="{$info.orgcode}"  style='width: 50%'   name="orgcode" class="common-text"> 
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%"><i class="require-red"></i>主打产品</th>
                                
                               <td>
                                    <input type="text" value="{$info.mainproduct}"  style='width: 50%' name="mainproduct" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>产地</th>
                               <td>
                                    <input type="text" value="{$info.producer}"  style='width: 50%'  name="producer" class="common-text"> 
                                    <input type="checkbox" <if condition="$info.is_producer eq 1 ">checked='true'</if> name="is_producer" value='1' id="">
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%"><i class="require-red"></i>品牌</th>
                               <td>
                                    <input type="text" value="{$info.brands}" style='width: 50%'    name="brands" class="common-text"> 
                                    <input type="checkbox"  <if condition="$info.is_brands eq 1 ">checked='true'</if> name="is_brands" value='1' id="">
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%"><i class="require-red"></i>生产日期</th>
                               <td>
                                    <input placeholder="请输入日期" name='productiondata' datatype="*" nullmsg="请选择生产日期！" errormsg="请选择生产日期！" value="{$info.productiondata|date='Y-m-d H:i:s',###}" class="laydate-icon" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                                    <!-- <input type="text" style='width: 50%'  datatype='n' value='' errormsg="请添加有效的数量"   name="goods_number" class="common-text">  -->
                                    
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%"><i class="require-red"></i>有效期限</th>
                               <td>
                                   <input type="text" style='width: 50%' value="{$info.deadlines}"  name="deadlines" class="common-text"> 
                                    <input type="checkbox" name="is_deadlines" <if condition="$info.is_deadlines eq 1 ">checked='true'</if>  value='1' id="">
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>有限期限</th>
                               <td>
                                   <input type="text" value="{$info.limitedperiod}" style='width: 50%'   name="limitedperiod" class="common-text"> 
                                    <input type="checkbox" <if condition="$info.is_limitedperiod eq 1 ">checked='true'</if>  name="is_limitedperiod" value='1' id="">
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>生产批次</th>
                               <td>
                                   <input type="text" style='width: 50%' value="{$info.productionbatch}"  name="productionbatch" class="common-text"> 
                                    <input type="checkbox" <if condition="$info.is_productionbatch eq 1 ">checked='true'</if>   name="is_productionbatch" id="">
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>商家简介</th>
                               <td>
                                  <textarea name='dcontent' style='width: 50%'>
                                    {$info.dcontent}
                                  </textarea>
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%" ><i class="require-red"></i>食品简介</th>
                               <td>
                                  <textarea name='shipin' style='width: 50%'>
                                      {$info.shipin}
                                  </textarea>
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>产品描述</th>
                               <td>
                                   <input type="text" style='width: 50%' value="{$info.prodesc}"  name="prodesc" class="common-text"> 
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%"><i class="require-red"></i>产品配方</th>
                               <td>
                                   <input type="text" style='width: 50%'  value="{$info.proformula}"  name="proformula" class="common-text"> 
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%"><i class="require-red"></i>适用范围</th>
                               <td>
                                   <input type="text" style='width: 50%'  value="{$info.applicationscope}" name="applicationscope" class="common-text"> 
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%"><i class="require-red"></i>使用方法</th>
                               <td>
                                   <input type="text" style='width: 50%' value="{$info.usagemethod}"  name="usagemethod" class="common-text"> 
                               </td>
                                 
                            </tr>
                             <tr>
                                 <th width="15%"><i class="require-red"></i>注意事项</th>
                               <td>
                                   <input type="text" style='width: 50%' value="{$info.considerations}"   name="considerations" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>生产备案号</th>
                               <td>
                                   <input type="text" style='width: 50%' value="{$info.productionrecordnumber}"  name="productionrecordnumber" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>产品备案号</th>
                               <td>
                                   <input type="text" style='width: 50%' value="{$info.productrecordnumber}"  name="productrecordnumber" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>规格型号</th>
                               <td>
                                   <input type="text" style='width: 50%'  value="{$info.specificationmodel}" name="specificationmodel" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>销售地区</th>
                               <td>
                                   <input type="text" style='width: 50%' value="{$info.salesarea}"  name="salesarea" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>负责人</th>
                               <td>
                                   <input type="text" style='width: 50%'  value="{$info.fuzeren}" name="fuzeren" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>电话</th>
                               <td>
                                   <input type="text" style='width: 50%' value="{$info.lxtel}" datatype="*" nullmsg="请填写电话" errormsg="请填写电话"   name="lxtel" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>网址</th>
                               <td>
                                   <input type="text" style='width: 50%' value="{$info.lxurl}"  datatype="url" nullmsg="请填写网址" errormsg="请填写网址"  name="lxurl" class="common-text"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>添加时间</th>
                               <td>
                                   <input placeholder="请输入日期" name='add_time' value="{$info.add_time|date='Y-m-d H:i:s',###}"  class="laydate-icon" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"> 
                               </td>
                                 
                            </tr>
                            <tr>
                                 <th width="15%"><i class="require-red"></i>排序</th>
                               <td>
                                   <input type="text" style='width: 50%' value="{$info.sort_order}"    name="sort_order" class="common-text"> 
                               </td>
                                 
                            </tr> 
                            <tr>
                                 <th width="15%"><i class="require-red"></i>是否显示</th>
                               <td>
                                   <input type="radio" checked="true" <if condition="$info.is_open eq 1 ">checked='true' </if> name="is_open" value='1' id="">显示
                                   <input type="radio" name="is_open" id="" <if condition="$info.is_open eq 0 ">checked='true' </if> value='0'>不显示
                               </td>
                                 
                            </tr>
                          
                                <tr>
                                    <th></th>
                                    <td>
                                      
                                        <input type="submit" value="提交" class="btn btn-primary btn6 mr10">
                                        <input type="button" value="返回" onclick="history.go(-1)" class="btn btn6">
                                    </td>
                                </tr>
                            </tbody></table>
                    </div>
                </div>
                </form>
                 <form action="{:U('Qrcode/addbuchonginfoSub')}" method="post" id="myform" name="myform">
           
                <div class="config-items" id='buchonginfo' style="display: none">
                    <div class="config-title">
                       <h1>
                          <i class="icon-font">&#xe00a;</i>
                          <span onclick="jiben()" onmouseover="this.style.cursor='hand'">基本信息</span> &nbsp;&nbsp;&nbsp;
                          <i class="icon-font">&#xe00a;</i>
                          <span onclick='buchong()' onmouseover="this.style.cursor='hand'" class='buchong'>补充信息</span>
                        </h1>
                    </div>
                    <div class="result-content">
                        <table width="100%" class="insert-tab">
                            <tbody>
                              <input type="hidden" name="goods_id" value="{$data.goods_id}">
                             <volist name="otherinfo" id="vo" empty="暂时没有数据" >
                              <if condition="$vo.form_type eq 'text' ">
                              <tr>
                                   <th width="15%"><i class="require-red"></i>{$vo.name}</th>
                               <td>
                                  
                                   <input type="text" name="{$vo.field}" value="<?php $field = $vo['field']; echo $buchonginfo[$field]; ?>" id=""  style="width: 70%"> 
                               </td>
                              </tr>
                               
                              </if>
                                <if condition="$vo.form_type eq 'datetime' ">
                              <tr>
                                   <th width="15%"><i class="require-red"></i>{$vo.name}</th>
                               <td>
                                   <input value="<?php $field = $vo['field']; echo date('Y-m-d H:i:s',$buchonginfo[$field]); ?>" placeholder="请输入日期" name="{$vo.field}" class="laydate-icon" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                               </td>
                              </tr>
                               
                              </if>
                              <if condition="$vo.form_type eq 'textarea' ">
                              <tr>
                                   <th width="15%"><i class="require-red"></i>{$vo.name}</th>
                               <td>
                                <textarea name="{$vo.field}" value="<?php $field = $vo['field']; echo $buchonginfo[$field]; ?>" style="width:70%;height: 160px;">
                                 <?php $field = $vo['field']; echo $buchonginfo[$field]; ?> 
                                </textarea>
                                    
                               </td>
                              </tr>
                               
                              </if>
                               <if condition="$vo.form_type eq 'radio' ">
                               <tr>
                                  <th width="15%"><i class="require-red"></i>{$vo.name}   </th>
                                  <td>

                                    <foreach name="vo['setting']" item="vo1" key="k" >  

                                     <input type="radio" name="{$vo.field}"  id="">{$vo1} 
                                   </foreach>
                                  </td>
                                  
                               </tr>
                               
                               </if>
                             </volist>
                                <tr>
                                    <th></th>
                                    <td>
                                      
                                        <input type="submit" value="提交" class="btn btn-primary btn6 mr10">
                                        <input type="button" value="返回" onclick="history.go(-1)" class="btn btn6">
                                    </td>
                                </tr>
                            </tbody></table>
                    </div>
                </div>
                </form>
        </div>
    </div>

<script type="text/javascript">
$(function(){
	
	 $("#myform").Validform({
	    
	 });  //就这一行代码！;
		
	  
	
})
</script>